from django.conf.urls import url

from apps.courses.views import CoursePageView,CourseDetailView,CourseVideoView,CourseCommentView,PlayVideoView

urlpatterns = [
    # 公开课分页
    url(r'^coursePage/$',CoursePageView.as_view(),name="coursePage"),
    # 公开课详情
    url(r'^courseDetail/(?P<courseId>\d+)/$',CourseDetailView.as_view(),name="courseDetail"),
    # # 公开课章节
    url(r'^courseVideo/(?P<courseId>\d+)/$',CourseVideoView.as_view(),name="courseVideo"),
    # # 公开课评论
    url(r'^courseComment/(?P<courseId>\d+)/$',CourseCommentView.as_view(),name="courseComment"),
    # # 视频播放
    url(r'^playVideo/(?P<videoId>\d+)/$',PlayVideoView.as_view(),name="playVideo")
]
